{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2023-11-28T06:39:40.656539800Z",
     "start_time": "2023-11-28T06:39:40.633995700Z"
    }
   },
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "\n",
    "df = pd.read_csv('../static/data/rank_info.csv')\n",
    "df['类别'] = df['类别'].apply(lambda x: x[1:-1])\n",
    "df.to_csv('../static/data/rank_info_pre.csv',index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "outputs": [
    {
     "data": {
      "text/plain": "[array(['[东方玄幻]', 173], dtype=object),\n array(['[乡村乡土]', 13], dtype=object),\n array(['[传统武侠]', 10], dtype=object),\n array(['[侦探推理]', 1], dtype=object),\n array(['[兽世王朝]', 4], dtype=object),\n array(['[军旅生涯]', 5], dtype=object),\n array(['[历史传奇]', 6], dtype=object),\n array(['[历史武侠]', 4], dtype=object),\n array(['[历史穿越]', 39], dtype=object),\n array(['[古代重生]', 18], dtype=object),\n array(['[古典仙侠]', 45], dtype=object),\n array(['[古典仙缘]', 12], dtype=object),\n array(['[商业大亨]', 8], dtype=object),\n array(['[奇幻修真]', 14], dtype=object),\n array(['[奇幻魔法]', 1], dtype=object),\n array(['[女尊女强]', 4], dtype=object),\n array(['[娱乐明星]', 4], dtype=object),\n array(['[婚恋职场]', 3], dtype=object),\n array(['[宫斗权谋]', 4], dtype=object),\n array(['[年代种田]', 13], dtype=object),\n array(['[异世争霸]', 8], dtype=object),\n array(['[异界大陆]', 81], dtype=object),\n array(['[影视原著]', 3], dtype=object),\n array(['[总裁豪门]', 37], dtype=object),\n array(['[恐怖悬疑]', 3], dtype=object),\n array(['[悬疑推理]', 3], dtype=object),\n array(['[战争幻想]', 3], dtype=object),\n array(['[战史风云]', 5], dtype=object),\n array(['[探险揭秘]', 9], dtype=object),\n array(['[时空快穿]', 4], dtype=object),\n array(['[时空穿梭]', 2], dtype=object),\n array(['[星际战争]', 2], dtype=object),\n array(['[未来幻想]', 10], dtype=object),\n array(['[未来科幻]', 1], dtype=object),\n array(['[末世危机]', 33], dtype=object),\n array(['[架空历史]', 86], dtype=object),\n array(['[校园青春]', 2], dtype=object),\n array(['[校园风云]', 1], dtype=object),\n array(['[民国情缘]', 1], dtype=object),\n array(['[民间奇谈]', 16], dtype=object),\n array(['[江湖侠情]', 2], dtype=object),\n array(['[洪荒封神]', 5], dtype=object),\n array(['[浪漫纯爱]', 3], dtype=object),\n array(['[游戏异界]', 5], dtype=object),\n array(['[游戏生涯]', 18], dtype=object),\n array(['[灵魂转换]', 2], dtype=object),\n array(['[热血青春]', 1], dtype=object),\n array(['[爆笑幽默]', 3], dtype=object),\n array(['[现代修真]', 3], dtype=object),\n array(['[现代重生]', 8], dtype=object),\n array(['[现实题材]', 15], dtype=object),\n array(['[电子竞技]', 2], dtype=object),\n array(['[男生同人]', 5], dtype=object),\n array(['[神话情缘]', 3], dtype=object),\n array(['[空间种田]', 18], dtype=object),\n array(['[职场励志]', 1], dtype=object),\n array(['[虚拟网游]', 24], dtype=object),\n array(['[蜜爱甜宠]', 8], dtype=object),\n array(['[西方奇幻]', 7], dtype=object),\n array(['[谍战特工]', 9], dtype=object),\n array(['[豪门宅斗]', 2], dtype=object),\n array(['[进化变异]', 6], dtype=object),\n array(['[都市异能]', 44], dtype=object),\n array(['[都市激战]', 33], dtype=object),\n array(['[都市生活]', 102], dtype=object),\n array(['[都市重生]', 28], dtype=object),\n array(['[青春旧忆]', 11], dtype=object),\n array(['[青春虐恋]', 1], dtype=object)]"
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [],
   "metadata": {
    "collapsed": false,
    "ExecuteTime": {
     "end_time": "2023-11-28T06:37:00.584820100Z",
     "start_time": "2023-11-28T06:37:00.573792700Z"
    }
   },
   "id": "d0219ed250ea2ad1"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
